﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-trasitional.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="~/css/table.css" rel="stylesheet" />
    <link href="~/css/cwcalendar.css" rel="stylesheet" />
    <script src="~/javascript/comm/comm.js"></script>
    <script src="~/javascript/comm/list.js"></script>
    <script src="~/javascript/calendar-ch.js"></script>
    <script src="~/javascript/jquery-1.7.2.js"></script>
    <script src="~/javascript/locate.js"></script>
    <script src="~/javascript/select.js"></script>
    <script type="text/javascript">
        window.onload = check;
        function tick() {
            var now = new Date();
            var hours, minutes, seconds, noon;
            var intHours, intMinutes, intSeconds;
            intHours = now.getHours();
            intMinutes = now.getMinutes();
            intSeconds = now.getSeconds();
            if (intHours < 24) {
                hours = intHours + ":";
                noon = "A.M.";
            } else {
                intHours = intHours - 24;
                hours = intHours + ":";
                noon = "P.M.";
            }
            if (intMinutes < 10) {
                minutes = "0" + intMinutes + ":";
            } else {
                minutes = intMinutes + ":";
            }
            if (intSeconds < 10) {
                seconds = "0" + intSeconds + " ";
            } else {
                seconds = intSeconds + " ";
            }
            timeString = hours + minutes + seconds;
            var now = new Date();
            document.getElementById("check_time").value = now.getFullYear() + "-" + (now.getMonth() + 1) + "-" + now.getDate() + " " + timeString;
            window.setTimeout("tick();", 1000);
        }

        //load事件
        function check() {
            //获得系统当前时间的方法
            tick();
        }
    </script>
    <script type="text/javascript">
        function search() {
            document.getElementById("checkTime").value = document.getElementById("nowTime").value;
            document.humanfileForm.submit();
        }
    </script>
</head>

<body>
    <div id="app">
        <form id="form1">
            <table width="100%">
                <tr>
                    <td>
                        <font color="black">
                            您正在做的业务是：人力资源--招聘管理--简历管理--简历筛选--简历筛选编辑
                        </font>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <input type="button" value="推荐" class="BUTTON_STYLE1" v-on:click="Update()">
                        <input type="button" value="返回" class="BUTTON_STYLE1" onclick="window.location.href='resume_list'">
                    </td>
                </tr>
            </table>
            <table width="100%" border="1" cellpadding=0 cellspacing=1
                   bordercolorlight=#848284 bordercolordark=#eeeeee
                   class="TABLE_STYLE1">
                <tr hidden>
                    <td width="19%" class="TD_STYLE1">
                        编号
                    </td>
                    <td width="81%" class="TD_STYLE2">
                        <input type="text" id="res_id" name="res_id" v-model="res_id" hidden />
                    </td>
                </tr>
                <tr>
                    <td class="TD_STYLE1">
                        职位分类
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="human_major_kind_name" id="human_major_kind_name" v-model="human_major_kind_name" readonly="readonly" class="INPUT_STYLE1" />
                        <input id="human_major_kind_id" name="human_major_kind_id" hidden="hidden" v-model="human_major_kind_id" value="" />
                    </td>
                    <td class="TD_STYLE1">
                        职位名称
                    </td>
                    <td class="TD_STYLE2" width="20%">
                        <input hidden="hidden" id="human_major_id" name="human_major_id" v-model="human_major_id" />
                        <input type="text" name="human_major_name" id="human_major_name" v-model="human_major_name" readonly="readonly" class="INPUT_STYLE1" />
                    </td>
                    <td width="11%" class="TD_STYLE1">
                        招聘类型
                    </td>
                    <td class="TD_STYLE2" colspan="2">
                        <select name="engage_type" id="engage_type" class="SELECT_STYLE1" readonly="readonly" v-model="engage_type">
                            <option value="">--请选择--</option>

                            <option value="校园招聘">校园招聘</option>

                            <option value="社会招聘">社会招聘</option>

                        </select>
                    </td>
                    <td rowspan="6">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="TD_STYLE1">
                        姓名
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="human_name" id="human_name" v-model="human_name" readonly="readonly" class="INPUT_STYLE2" />
                    </td>
                    <td class="TD_STYLE1">
                        性别
                    </td>
                    <td class="TD_STYLE2">
                        <select name="human_sex" id="human_sex" v-model="human_sex" readonly="readonly" class="SELECT_STYLE1">
                            <option value="男">男</option>
                            <option value="女">女</option>
                        </select>
                    </td>
                    <td class="TD_STYLE1">
                        EMAIL
                    </td>
                    <td colspan="2" class="TD_STYLE2">
                        <input type="text" name="human_email" id="human_email" v-model="human_email" readonly="readonly" class="INPUT_STYLE2">
                    </td>
                </tr>
                <tr>
                    <td class="TD_STYLE1">
                        电话
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="human_telephone" id="human_telephone" v-model="human_telephone" readonly="readonly" class="INPUT_STYLE2">
                    </td>
                    <td class="TD_STYLE1">
                        家庭电话
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="human_homephone" id="human_homephone" v-model="human_homephone" readonly="readonly" class="INPUT_STYLE2">
                    </td>
                    <td class="TD_STYLE1">
                        手机
                    </td>
                    <td colspan="2" class="TD_STYLE2">
                        <input type="text" name="human_mobilephone" id="human_mobilephone" v-model="human_mobilephone" readonly="readonly" class="INPUT_STYLE2">
                    </td>
                </tr>
                <tr>
                    <td class="TD_STYLE1">
                        住址
                    </td>
                    <td colspan="3" class="TD_STYLE2">
                        <input type="text" name="human_address" id="human_address" v-model="human_address" readonly="readonly" class="INPUT_STYLE2">
                    </td>

                    <td class="TD_STYLE1">
                        邮编
                    </td>
                    <td colspan="2" class="TD_STYLE2">
                        <input type="text" name="human_postcode" id="human_postcode" v-model="human_postcode" readonly="readonly" class="INPUT_STYLE2">
                    </td>
                </tr>

                <tr>
                    <td class="TD_STYLE1">
                        国籍
                    </td>
                    <td class="TD_STYLE2">
                        <select name="human_nationality" id="human_nationality" v-model="human_nationality" readonly="readonly" class="SELECT_STYLE1">
                            <option value="">--请选择--</option>

                            <option value="中国">中国</option>

                            <option value="美国">美国</option>

                        </select>
                    </td>
                    <td class="TD_STYLE1">
                        出生地
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="human_birthplace" id="human_birthplace" v-model="human_birthplace" readonly="readonly" class="INPUT_STYLE2">
                    </td>
                    <td class="TD_STYLE1">
                        生日
                    </td>
                    <td width="13%" colspan="2" class="TD_STYLE2">
                        <input type="text" name="human_birthday" id="date_start" v-model="human_birthday" readonly="readonly" class="INPUT_STYLE2">
                    </td>

                </tr>
                <tr>
                    <td width="11%" class="TD_STYLE1">
                        民族
                    </td>
                    <td class="TD_STYLE2" width="14%">
                        <select name="human_race" id="human_race" v-model="human_race" readonly="readonly" class="SELECT_STYLE1">
                            <option value="">--请选择--</option>

                            <option value="汉族">汉族</option>

                            <option value="回族">回族</option>

                        </select>
                    </td>
                    <td class="TD_STYLE1">
                        宗教信仰
                    </td>
                    <td class="TD_STYLE2">
                        <select name="human_religion" id="human_religion" v-model="human_religion" readonly="readonly" class="SELECT_STYLE1">

                            <option value="无">无</option>

                            <option value="佛教">佛教</option>

                        </select>
                    </td>
                    <td class="TD_STYLE1">
                        政治面貌
                    </td>
                    <td class="TD_STYLE2" colspan="2">
                        <select name="human_party" id="human_party" v-model="human_party" readonly="readonly" class="SELECT_STYLE1">
                            <option value="">--请选择--</option>

                            <option value="党员">党员</option>

                            <option value="群众">群众</option>

                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="TD_STYLE1">
                        身份证号码
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="human_idcard" v-model="human_idcard" id="human_idcard" readonly="readonly" class="INPUT_STYLE2">
                    </td>
                    <td class="TD_STYLE1">
                        年龄
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="human_age" id="human_age" v-model="human_age" readonly="readonly" class="INPUT_STYLE2">
                    </td>
                    <td class="TD_STYLE1">
                        毕业院校
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="human_college" id="human_college" v-model="human_college" readonly="readonly" class="INPUT_STYLE2" />
                    </td>

                    <td class="TD_STYLE1">
                        学历
                    </td>
                    <td class="TD_STYLE2">
                        <select name="human_educated_degree" id="human_educated_degree" v-model="human_educated_degree" readonly="readonly" class="SELECT_STYLE1">
                            <option value="">--请选择--</option>

                            <option value="本科">本科</option>

                            <option value="大专">大专</option>

                        </select>
                    </td>

                </tr>
                <tr>
                    <td class="TD_STYLE1">
                        教育年限
                    </td>
                    <td class="TD_STYLE2">
                        <select name="human_educated_years" id="human_educated_years" v-model="human_educated_years" readonly="readonly" class="SELECT_STYLE1">
                            <option value="">--请选择--</option>

                            <option value="12">12</option>

                            <option value="16">16</option>

                        </select>
                    </td>
                    <td class="TD_STYLE1">
                        学历专业
                    </td>
                    <td class="TD_STYLE2">
                        <select name="human_educated_major" id="human_educated_major" v-model="human_educated_major" readonly="readonly" class="SELECT_STYLE1">
                            <option value="">--请选择--</option>

                            <option value="生物工程">生物工程</option>

                            <option value="计算机">计算机</option>

                        </select>
                    </td>

                    <td class="TD_STYLE1">
                        薪酬要求
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="demand_salary_standard" id="demand_salary_standard" readonly="readonly" v-model="demand_salary_standard" class="INPUT_STYLE2" />
                    </td>
                    <td class="TD_STYLE1">
                        注册时间
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="regist_time"
                               id="regist_time" v-model="regist_time" readonly="readonly"
                               class="INPUT_STYLE2">
                    </td>

                </tr>
                <tr>

                    <td class="TD_STYLE1">
                        特长
                    </td>
                    <td class="TD_STYLE2">
                        <select name="human_specility" id="human_specility" v-model="human_specility" readonly="readonly" class="SELECT_STYLE1">
                            <option value="">--请选择--</option>

                            <option value="数据库">数据库</option>

                            <option value="java">java</option>

                            <option value=".net">.net</option>

                        </select>
                    </td>
                    <td class="TD_STYLE1">
                        爱好
                    </td>
                    <td class="TD_STYLE2">
                        <select name="human_hobby" id="human_hobby" v-model="human_hobby" readonly="readonly" class="SELECT_STYLE1">
                            <option value="">--请选择--</option>

                            <option value="篮球">篮球</option>

                            <option value="舞蹈">舞蹈</option>

                            <option value="唱歌">唱歌</option>

                        </select>
                    </td>

                    <td class="TD_STYLE1">
                        推荐人
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="checker" id="checker" v-model="checker" class="INPUT_STYLE2" />
                    </td>
                    <td class="TD_STYLE1">
                        推荐时间
                    </td>
                    <td class="TD_STYLE2">
                        <input type="text" name="check_time" id="check_time" v-model="check_time" readonly="readonly" class="INPUT_STYLE2">

                    </td>
                </tr>
                <tr>
                    <td class="TD_STYLE1">
                        个人履历
                    </td>
                    <td colspan="7" class="TD_STYLE2">
                        <textarea name="human_history_records" id="human_history_records" v-model="human_history_records" rows="4" readonly="readonly" class="TEXTAREA_STYLE1">
						</textarea>
                    </td>
                </tr>

                <tr>
                    <td class="TD_STYLE1">
                        备注
                    </td>
                    <td colspan="7" class="TD_STYLE2">
                        <textarea name="remark" id="remark" v-model="remark" rows="4" readonly="readonly" class="TEXTAREA_STYLE1">
						</textarea>
                    </td>
                </tr>
                <tr>
                    <td class="TD_STYLE1">
                        推荐意见
                    </td>
                    <td colspan="7" class="TD_STYLE2">
                        <textarea name="recomandation" rows="4" id="recomandation" v-model="recomandation" class="TEXTAREA_STYLE1">
						</textarea>
                    </td>
                </tr>
            </table>
        </form>
    </div>
</body>

</html>

<script type="text/javascript">
    var vm = new Vue({
        el: "#app",
        data: {
            res_id:"",
            first_kind_id: "",
            first_kind_name: "",
            second_kind_id: "",
            second_kind_name: "",
            third_kind_id: "",
            third_kind_name: "",
            engage_type: "",
            salary_standard_name: "",
            regist_time: "",
            human_name: "",
            human_address: "",
            human_postcode: "",
            human_pro_designation: "",
            human_major_kind_id: "",
            human_major_kind_name: "",
            human_major_id: "",
            human_major_name: "",
            human_telephone: "",
            human_homephone: "",
            human_mobilephone: "",
            human_email: "",
            human_hobby: "",
            human_specility: "",
            human_sex: "",
            human_religion: "",
            human_party: "",
            human_nationality: "",
            human_race: "",
            human_birthday: "",
            human_birthplace: "",
            human_age: "",
            human_educated_degree: "",
            human_educated_years: "",
            human_educated_major: "",
            human_college: "",
            human_idcard: "",
            remark:"",
            demand_salary_standard: "",
            human_history_records: "",
            check_status: "",
            checker: "",
            check_time: "",
            recomandation:""
        },
        methods: {
            load: function () {
                var t = this;
                $.ajax({
                    url: "/resume/resume_details1",
                    type: "Post",
                    data:"id="+@ViewData["id"],
                    success: function (msg) {
                        var dt = eval("(" + msg + ")");
                        t.res_id = dt.res_id;
                        t.human_name = dt.human_name;
                        t.engage_type = dt.engage_type;
                        t.human_address = dt.human_address;
                        t.human_postcode = dt.human_postcode;
                        t.human_major_kind_id = dt.human_major_kind_id;
                        t.human_major_kind_name = dt.human_major_kind_name;
                        t.human_major_id = dt.human_major_id;
                        t.human_major_name = dt.human_major_name;
                        t.human_telephone = dt.human_telephone;
                        t.human_homephone = dt.human_homephone;
                        t.human_mobilephone = dt.human_mobilephone;
                        t.human_email = dt.human_email;
                        t.human_hobby = dt.human_hobby;
                        t.human_specility = dt.human_specility;
                        t.human_sex = dt.human_sex;
                        t.human_religion = dt.human_religion;
                        t.human_party = dt.human_party;
                        t.human_nationality = dt.human_nationality;
                        t.human_race = dt.human_race;
                        t.human_birthday = dt.human_birthday;
                        t.human_age = dt.human_age;
                        t.human_educated_degree = dt.human_educated_degree;
                        t.human_educated_years = dt.human_educated_years;
                        t.human_educated_major = dt.human_educated_major;
                        t.human_college = dt.human_college;
                        t.human_idcard = dt.human_idcard;
                        t.human_birthplace = dt.human_birthplace;
                        t.demand_salary_standard = dt.demand_salary_standard;
                        t.human_history_records = dt.human_history_records;
                        t.remark = dt.remark;
                        t.recomandation = dt.recomandation;
                        t.human_picture = dt.human_picture;
                        t.attachment_name = dt.attachment_name;
                        t.check_status = dt.check_status;
                        t.register = dt.register;
                        t.regist_time = dt.regist_time;
                        t.checker = dt.checker;
                        t.check_time = dt.check_time;
                        t.pass_register = dt.pass_register;
                        t.pass_regist_time = dt.pass_regist_time;
                        t.pass_checker = dt.pass_checker;
                        t.pass_check_time = dt.pass_check_time;
                    }
                })
            },
            Update: function () {
                $.ajax({
                    url: "/resume/resume_details",
                    type: "put",
                    data: $("#form1").serialize(),
                    success: function (msg) {
                        if (msg > 0) {
                            alert('推荐成功!');
                            window.location.href = '/resume/valid_resume';
                        } else {
                            alert('推荐失败!');
                            window.location.href = '/resume/resume_list';
                        }
                    }
                })
            }
        },
        mounted: function () {
            this.load();
        }
    })
</script>


